<?php

echo $this->Form->create('Product', array(
    'type' => 'POST',
    'class' => "form-inline",
    'url' => array(
        'controller' => 'products',
        'action' => 'search'
    )
        )
);
echo $this->Form->input(
        'Product.search', array(
    'label' => false,
    'div' => array('class'=>'col-xs-12 input-group'),
    'class' => 'form-control',
    'beforeInput' => '<div class="input-group">',
    'afterInput' => '<span class="input-group-btn"><button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button></span></div>'
        )
);
//echo $this->Form->button(__('Search'), array('div' => false, 'class' => 'btn btn-sm btn-primary'));
echo $this->Form->end();
?>